package cn.gene.timeyan.ums.webapi.ums.utils;

import java.util.regex.Pattern;

public class PictureUtils {

    private static final String IMAGE_PATTERN =
            "([^\\s]+(\\.(?i)(jpg|png|bmp))$)";
    /**
     *
     * @param imageUrl
     * @return
     */
    public static boolean validate(String imageUrl){
        return Pattern.matches(IMAGE_PATTERN,imageUrl);
    }
}
